package com.bjsxt.pojo;

import java.util.ArrayList;
import java.util.List;

public class StaffExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StaffExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStaffidIsNull() {
            addCriterion("staffid is null");
            return (Criteria) this;
        }

        public Criteria andStaffidIsNotNull() {
            addCriterion("staffid is not null");
            return (Criteria) this;
        }

        public Criteria andStaffidEqualTo(Integer value) {
            addCriterion("staffid =", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidNotEqualTo(Integer value) {
            addCriterion("staffid <>", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidGreaterThan(Integer value) {
            addCriterion("staffid >", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidGreaterThanOrEqualTo(Integer value) {
            addCriterion("staffid >=", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidLessThan(Integer value) {
            addCriterion("staffid <", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidLessThanOrEqualTo(Integer value) {
            addCriterion("staffid <=", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidIn(List<Integer> values) {
            addCriterion("staffid in", values, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidNotIn(List<Integer> values) {
            addCriterion("staffid not in", values, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidBetween(Integer value1, Integer value2) {
            addCriterion("staffid between", value1, value2, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidNotBetween(Integer value1, Integer value2) {
            addCriterion("staffid not between", value1, value2, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffnameIsNull() {
            addCriterion("staffname is null");
            return (Criteria) this;
        }

        public Criteria andStaffnameIsNotNull() {
            addCriterion("staffname is not null");
            return (Criteria) this;
        }

        public Criteria andStaffnameEqualTo(String value) {
            addCriterion("staffname =", value, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameNotEqualTo(String value) {
            addCriterion("staffname <>", value, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameGreaterThan(String value) {
            addCriterion("staffname >", value, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameGreaterThanOrEqualTo(String value) {
            addCriterion("staffname >=", value, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameLessThan(String value) {
            addCriterion("staffname <", value, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameLessThanOrEqualTo(String value) {
            addCriterion("staffname <=", value, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameLike(String value) {
            addCriterion("staffname like", value, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameNotLike(String value) {
            addCriterion("staffname not like", value, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameIn(List<String> values) {
            addCriterion("staffname in", values, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameNotIn(List<String> values) {
            addCriterion("staffname not in", values, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameBetween(String value1, String value2) {
            addCriterion("staffname between", value1, value2, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffnameNotBetween(String value1, String value2) {
            addCriterion("staffname not between", value1, value2, "staffname");
            return (Criteria) this;
        }

        public Criteria andStaffsexIsNull() {
            addCriterion("staffsex is null");
            return (Criteria) this;
        }

        public Criteria andStaffsexIsNotNull() {
            addCriterion("staffsex is not null");
            return (Criteria) this;
        }

        public Criteria andStaffsexEqualTo(String value) {
            addCriterion("staffsex =", value, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexNotEqualTo(String value) {
            addCriterion("staffsex <>", value, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexGreaterThan(String value) {
            addCriterion("staffsex >", value, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexGreaterThanOrEqualTo(String value) {
            addCriterion("staffsex >=", value, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexLessThan(String value) {
            addCriterion("staffsex <", value, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexLessThanOrEqualTo(String value) {
            addCriterion("staffsex <=", value, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexLike(String value) {
            addCriterion("staffsex like", value, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexNotLike(String value) {
            addCriterion("staffsex not like", value, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexIn(List<String> values) {
            addCriterion("staffsex in", values, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexNotIn(List<String> values) {
            addCriterion("staffsex not in", values, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexBetween(String value1, String value2) {
            addCriterion("staffsex between", value1, value2, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStaffsexNotBetween(String value1, String value2) {
            addCriterion("staffsex not between", value1, value2, "staffsex");
            return (Criteria) this;
        }

        public Criteria andStafftelIsNull() {
            addCriterion("stafftel is null");
            return (Criteria) this;
        }

        public Criteria andStafftelIsNotNull() {
            addCriterion("stafftel is not null");
            return (Criteria) this;
        }

        public Criteria andStafftelEqualTo(String value) {
            addCriterion("stafftel =", value, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelNotEqualTo(String value) {
            addCriterion("stafftel <>", value, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelGreaterThan(String value) {
            addCriterion("stafftel >", value, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelGreaterThanOrEqualTo(String value) {
            addCriterion("stafftel >=", value, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelLessThan(String value) {
            addCriterion("stafftel <", value, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelLessThanOrEqualTo(String value) {
            addCriterion("stafftel <=", value, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelLike(String value) {
            addCriterion("stafftel like", value, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelNotLike(String value) {
            addCriterion("stafftel not like", value, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelIn(List<String> values) {
            addCriterion("stafftel in", values, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelNotIn(List<String> values) {
            addCriterion("stafftel not in", values, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelBetween(String value1, String value2) {
            addCriterion("stafftel between", value1, value2, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStafftelNotBetween(String value1, String value2) {
            addCriterion("stafftel not between", value1, value2, "stafftel");
            return (Criteria) this;
        }

        public Criteria andStaffpostIsNull() {
            addCriterion("staffpost is null");
            return (Criteria) this;
        }

        public Criteria andStaffpostIsNotNull() {
            addCriterion("staffpost is not null");
            return (Criteria) this;
        }

        public Criteria andStaffpostEqualTo(String value) {
            addCriterion("staffpost =", value, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostNotEqualTo(String value) {
            addCriterion("staffpost <>", value, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostGreaterThan(String value) {
            addCriterion("staffpost >", value, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostGreaterThanOrEqualTo(String value) {
            addCriterion("staffpost >=", value, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostLessThan(String value) {
            addCriterion("staffpost <", value, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostLessThanOrEqualTo(String value) {
            addCriterion("staffpost <=", value, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostLike(String value) {
            addCriterion("staffpost like", value, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostNotLike(String value) {
            addCriterion("staffpost not like", value, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostIn(List<String> values) {
            addCriterion("staffpost in", values, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostNotIn(List<String> values) {
            addCriterion("staffpost not in", values, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostBetween(String value1, String value2) {
            addCriterion("staffpost between", value1, value2, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffpostNotBetween(String value1, String value2) {
            addCriterion("staffpost not between", value1, value2, "staffpost");
            return (Criteria) this;
        }

        public Criteria andStaffsalIsNull() {
            addCriterion("staffsal is null");
            return (Criteria) this;
        }

        public Criteria andStaffsalIsNotNull() {
            addCriterion("staffsal is not null");
            return (Criteria) this;
        }

        public Criteria andStaffsalEqualTo(Integer value) {
            addCriterion("staffsal =", value, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffsalNotEqualTo(Integer value) {
            addCriterion("staffsal <>", value, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffsalGreaterThan(Integer value) {
            addCriterion("staffsal >", value, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffsalGreaterThanOrEqualTo(Integer value) {
            addCriterion("staffsal >=", value, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffsalLessThan(Integer value) {
            addCriterion("staffsal <", value, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffsalLessThanOrEqualTo(Integer value) {
            addCriterion("staffsal <=", value, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffsalIn(List<Integer> values) {
            addCriterion("staffsal in", values, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffsalNotIn(List<Integer> values) {
            addCriterion("staffsal not in", values, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffsalBetween(Integer value1, Integer value2) {
            addCriterion("staffsal between", value1, value2, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffsalNotBetween(Integer value1, Integer value2) {
            addCriterion("staffsal not between", value1, value2, "staffsal");
            return (Criteria) this;
        }

        public Criteria andStaffcommIsNull() {
            addCriterion("staffcomm is null");
            return (Criteria) this;
        }

        public Criteria andStaffcommIsNotNull() {
            addCriterion("staffcomm is not null");
            return (Criteria) this;
        }

        public Criteria andStaffcommEqualTo(Integer value) {
            addCriterion("staffcomm =", value, "staffcomm");
            return (Criteria) this;
        }

        public Criteria andStaffcommNotEqualTo(Integer value) {
            addCriterion("staffcomm <>", value, "staffcomm");
            return (Criteria) this;
        }

        public Criteria andStaffcommGreaterThan(Integer value) {
            addCriterion("staffcomm >", value, "staffcomm");
            return (Criteria) this;
        }

        public Criteria andStaffcommGreaterThanOrEqualTo(Integer value) {
            addCriterion("staffcomm >=", value, "staffcomm");
            return (Criteria) this;
        }

        public Criteria andStaffcommLessThan(Integer value) {
            addCriterion("staffcomm <", value, "staffcomm");
            return (Criteria) this;
        }

        public Criteria andStaffcommLessThanOrEqualTo(Integer value) {
            addCriterion("staffcomm <=", value, "staffcomm");
            return (Criteria) this;
        }

        public Criteria andStaffcommIn(List<Integer> values) {
            addCriterion("staffcomm in", values, "staffcomm");
            return (Criteria) this;
        }

        public Criteria andStaffcommNotIn(List<Integer> values) {
            addCriterion("staffcomm not in", values, "staffcomm");
            return (Criteria) this;
        }

        public Criteria andStaffcommBetween(Integer value1, Integer value2) {
            addCriterion("staffcomm between", value1, value2, "staffcomm");
            return (Criteria) this;
        }

        public Criteria andStaffcommNotBetween(Integer value1, Integer value2) {
            addCriterion("staffcomm not between", value1, value2, "staffcomm");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}